package com.qys.livesMall.app.user.model.dto.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 修改用户余额DTO
 * @author Admin
 */
@Data
@Schema(name = "ChangeUserBalanceDTO", description = "修改用户余额DTO")
public class ChangeUserBalanceDTO {

    @Schema(description = "用户id")
    @NotNull(message = "userId is null")
    private Long userId;

    @Schema(description = "发生金额(减少传负数)")
    @NotNull(message = "changeAmount is null")
    private BigDecimal changeAmount;

    @Schema(description = "备注")
    @NotBlank(message = "remark is blank")
    private String remark;
}
